package com.example.demo.behavior.chain;

import lombok.Data;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/27
 * @Version V1.0
 */
@Data
public abstract class Leader implements Handler {
    Leader next;
    void nextHandle(Staff staff) {
        if (getNext() != null) {
            getNext().handle(staff);
        }
    }
}
